﻿@model ContentViewModel;

@section Header {
    <title>@Model.Name - owllook</title>
    <link rel="stylesheet" href="~/novels/css/content.css">
    <style>
        #yun-tie-sdk-wrap {
            background-color: #f8f3e9 !important;
            margin-top: 20px;
        }
    </style>
}

<nav class="navbar navbar-default nav-search">
    <div class="container-fluid">
        <div class="navbar-header">
            <a class="navbar-brand" href="/">
            </a>
        </div>
        <form action="/search" method="get">
            <div class="col-xs-3 search">
                <input type="text" name="wd" placeholder="search" value="">
            </div>
        </form>
    </div>
</nav>

<div class="container all-content">
    <input id="content_url" type="hidden" value="@Model.ParseUrlType">
    <input id="url" type="hidden" value="@Model.Url">
    <input id="chapter_url" type="hidden" value="@Model.ChapterUrl">
    <input id="novels_name" type="hidden" value="@Model.NovelsName">
    <div class="title">
        <h2 id="content_name">@Model.Name</h2>
    </div>
    <div class="left-bar-list">
        <div class="left-bar-flag">
            @{
                var parms = new Dictionary<string, string> {
{ "url", Model.ChapterUrl },
{ "novels_name", Model.NovelsName }
};
            }
            <a asp-controller="Home" asp-action="Chapter" asp-all-route-data="parms">
                <span class="glyphicon glyphicon-list" aria-hidden="true"></span>
                <div>目录</div>
            </a>
        </div>
        <div class="left-bar-flag">
            <a href="">
                <span class="glyphicon glyphicon-cog" aria-hidden="true"></span>
                <div>设置</div>
            </a>
        </div>
        <div class="left-bar-flag">
            <a href="">
                <span class="glyphicon glyphicon-tasks" aria-hidden="true"></span>
                <div>书单</div>
            </a>
        </div>
    </div>
    <div class="show-content">
        @foreach (var item in Model.Contents)
        {
            @Html.Raw(item)
        }
    </div>
    <div class="pre_next">
        @foreach (var item in Model.NextChapters)
        {
            var nextParms = new Dictionary<string, string>
{
{ "url", item.Value },
{ "name", Model.Name },
{ "chapter_url", Model.ChapterUrl },
{ "novels_name", Model.NovelsName }
};
            <a asp-controller="Home" asp-action="Content" asp-all-route-data="nextParms" class="btn btn-default">
                @item.Key
            </a>
        }
    </div>
    <div class="move">
        <div class="move_up">
            <span class="glyphicon glyphicon-menu-up" aria-hidden="true"></span>
        </div>
        <div class="move_down">
            <span class="glyphicon glyphicon-menu-down" aria-hidden="true"></span>
        </div>
    </div>
</div>

@section Scripts {
    <script src="~/novels/js/theme.js"></script>
    <script src="~/novels/js/content.js"></script>
}



